blktap2: Fix build with gcc3. Cannot handle defining a function which
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 28 May 2009 10:01:00 +0000 (11:01 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 28 May 2009 10:01:00 +0000 (11:01 +0100)
commite1ae548d4277b16b9897b64e45f309f9c9523bf3
tree8e1e842c1372706c01c2472aa46d7c9339afca85
parentac3fc35d919c9f031f159ed4ae2802f5b9171788
blktap2: Fix build with gcc3. Cannot handle defining a function which
is passed a struct-by-value which is not yet fully defined. Thus
defining a request struct which contains a pointer to a function which
is passed-by-value an instance of that request structure is
impossible. We work around it by defining the function poiinter as
void* and then casting in one place.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
tools/blktap2/drivers/tapdisk-interface.c
tools/blktap2/drivers/tapdisk.h